<script type="text/javascript"> 

  //  $(document).ready(function() {
      $('#knast').click(function() {
		//alert("hhgr");
        $(".inner").slideToggle("fast");
      });
   // });



</script>

<?
//print_r($element_typer);
if(isset($stamdata['type'])) {
if($stamdata['type'] == "entitet") {
	if(in_array("individ",$element_typer)) {
		$bookmark_type = "individ";
	}
	elseif(in_array("gruppe",$element_typer)) {
		$bookmark_type = "gruppe";
	}
}
elseif(isset($stamdata['type'])) { $bookmark_type = $stamdata['type']; }

}

?>


<div style="display:none;width:100%;background:none;" class="inner">
	<div class="row-fluid" >

<?
foreach($bookmarks as $b) {
	echo "<a title='".$b['titel']."' href='".base_url()."almanak/side/".$b['id_url']."'><div class='bookmark'>";

	//echo "<p class='rotate'>";

	echo img("img/bookmarks/".$b['type'].".png");
	//echo "</p>";


	echo "</div></a>";
}

	if($this->uri->segment(2) == "side") {

		echo "<a title='Bogmærk denne side' href='#'><div id='new_bookmark' class='bookmark'>";
		echo img("img/ikoner/plus_white.png");
		echo "</div></a>";


			
		echo "<div id='new_form' style='display:none;width:200px;background:white;float:left;'>";
		echo form_open("core/opret/opret_bookmark");

		echo form_input('titel',$navne[0]);

		echo form_hidden('id_user',$deltager['userid']);
		echo form_hidden('id_url',$id);
		echo form_hidden('type',$bookmark_type);

		echo form_submit("bookmark_submit","bogmærk denne side");
		echo form_close();
		echo "</div>";
		
	 }
?>



		<!--div class="span1 rotate" style="font-weight:bold;color:white;height:100px;background:red;"><? echo anchor("almanak/side/370","test");?></div>

		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div>
		<div class="span1" style="height:100px;background:red;"></div-->

	</div>
</div>
<script type="text/javascript">
$("#new_bookmark").click(function(){
	$("#new_form").show();
});


</script>

